package com.swc.filter;

import org.springframework.core.Ordered;
import org.springframework.web.filter.OncePerRequestFilter;

/**
 * description TODO
 *
 * @author huyupeng
 * @version 1.0
 * @date 2021/7/23 14:08
 */
public abstract class OrderedOncePerRequestFilter extends OncePerRequestFilter implements Ordered {
    private int order = 0;

    public OrderedOncePerRequestFilter(int order) {
        this.order = order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public int getOrder() {
        return this.order;
    }
}
